package controllers

import (
	"IstioK8s/P2/src/models"
	"github.com/gin-gonic/gin"
	"github.com/shenyisyn/goft-gin/goft"
)

type ReviewCtl struct{}

func NewReviewCtl() *ReviewCtl {
	return &ReviewCtl{}
}

func (*ReviewCtl) Name() string {
	return "ReviewCtl"
}

func (*ReviewCtl) Reviews(c *gin.Context) goft.Json {
	return models.MockReviews()
}

func (this *ReviewCtl) Build(goft *goft.Goft) {
	goft.Handle("GET", "/reviews/:id", this.Reviews)
}
